import App from '../pages/app'
import Login from '../pages/login'
import Main from './main'
import React from 'react'
import {BrowserRouter, Route,Switch,Redirect} from "react-router-dom";

const Router = () => (
    <BrowserRouter  >
      <Switch>
          <Route exact path="/" component={App}/>
          <Route path="/login" component={Login}/>
          <Route path="/main" component={Main}/>
      </Switch>
    </BrowserRouter>

);

export default Router